package com.codewsq.sub;

import com.codewsq.sup.Person;

public class Student extends Person {
    public static void main(String[] args) {
        Student student = new Student();
        student.eat();
    }

    public int eat() {
        System.out.println("学生吃有营养的食物");
        return 0;
    }
}

class dog {
    public static void main(String[] args) {
        Person person = new Person();
        // 错误的，没有权限
        // person.id = 1;
        Student student = new Student();
        // student.id = 1;

    }
}